import request from '@/util/request'
import BaseRes from "@/api/BaseRes";
import IotThirdPartyTokenDTO from "@/api/iot/dto/IotThirdPartyTokenDTO";
// : Promise<BaseRes<IotThirdPartyTokenDTO>>

export function login(req:any) {
    return request({
        url: '/login',
        method: 'post',
        data:req,
		isToken:false
    })
}

// 获取用户详细信息
export function getInfo() {
  return request({
    url: '/getInfo',
    method: 'get',
	isToken:true
  })
}

// 退出方法
export function logout() {
  return request({
    url: '/logout',
    method: 'post'
  })
}